﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Win.master" AutoEventWireup="true" CodeBehind="CustomerAdd.aspx.cs" Inherits="Runda.EShop.SaaS.CustomerManage.CustomerAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
 <script type="text/javascript">
     function CheckForm() {
         if ($('#<%=txtAccount.ClientID %>').val() == '') {
             alert('请输入登录帐号');
             return false;
         }

         if ($('#<%=txtUserName.ClientID %>').val() == '') {
             alert('请输入用户姓名');
             return false;
         }

         if ($('#<%=txtPwd.ClientID %>').val() == '') {
             alert('请输入新密码!');
             return false;
         }

         if ($('#<%=txtPwdConfirm.ClientID %>').val() == '') {
             alert('请输入确认密码!');
             return false;
         }

         if ($('#<%=txtPwd.ClientID %>').val() != $('#<%=txtPwdConfirm.ClientID %>').val()) {
             alert('两次密码输入不一致!');
             return false;
         }
     }

     function OnSaved() {
         alert('保存成功.');
         parent.$.ligerDialog.hide();
         parent.$('#btnRefersh').click();
     }
  </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
 
    <table cellspacing="3" cellpadding="3" width="100%" class="i_center_table11">  
            <tr>
                <td class="Required">
                    登录帐号</td>
                <td>
                    <asp:TextBox ID="txtAccount" runat="server" CssClass="input"></asp:TextBox>
                </td>
                <td style="vertical-align: top">
                    用户姓名
                </td>
                <td>
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr id="trPwd" runat="server">
                <td>
                    登录密码</td>
                <td>
                    <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td>
                    确认密码</td>
                <td>
                    <asp:TextBox ID="txtPwdConfirm" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    所属部门</td>
                <td>
                    <asp:TextBox ID="txtDeptName" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return CheckForm();" />
                    &nbsp;<input id="btnClose" type="button" value="关闭" class="button" onclick="parent.$.ligerDialog.hide();" />
                </td>
            </tr>
      
    </table>
</asp:Content>
